package com.xxx.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 作者
 * @since 2021-12-21 22:07:52
 */
@Data
@TableName("t_payment_info")
@ApiModel(value = "PaymentInfo对象", description = "")
public class PaymentInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("支付记录id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("商户订单编号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty("支付系统交易编号")
    @TableField("transaction_id")
    private String transactionId;

    @ApiModelProperty("支付类型")
    @TableField("payment_type")
    private String paymentType;

    @ApiModelProperty("交易类型")
    @TableField("trade_type")
    private String tradeType;

    @ApiModelProperty("交易状态")
    @TableField("trade_state")
    private String tradeState;

    @ApiModelProperty("支付金额(分)")
    @TableField("payer_total")
    private Integer payerTotal;

    @ApiModelProperty("通知参数")
    @TableField("content")
    private String content;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


    public static final String ID = "id";

    public static final String ORDER_NO = "order_no";

    public static final String TRANSACTION_ID = "transaction_id";

    public static final String PAYMENT_TYPE = "payment_type";

    public static final String TRADE_TYPE = "trade_type";

    public static final String TRADE_STATE = "trade_state";

    public static final String PAYER_TOTAL = "payer_total";

    public static final String CONTENT = "content";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

}
